<%@page import="br.com.guardaroupavirtual.model.LookEvento"%>
<%@page import="br.com.guardaroupavirtual.model.Loja"%>
<%@page import="br.com.guardaroupavirtual.model.Categoria"%>
<%@page import="java.util.List"%>
<jsp:include page="../compartilhado/header.jsp"></jsp:include>

<%
	List<Loja> lojas = (List<Loja>) request.getAttribute("lojas");
%>

<h2>Cadastrando Look</h2>

<form action="LookEvento" method="post" role="form">

	<input type="hidden" name="cmd" value="cadastrar">

	<div class="form-group">
	  <label for="nome">Nome:</label>
	  <input type="text" required="required" name="nome" class="form-control" id="nome">
	</div>
	
	<div class="form-group">
	  <label for="loja">Loja:</label>
	  <select name="lojaID" required="required" class="form-control" id="loja">
	  	<option value="">Selecione</option>
	  	<%for(Loja loja : lojas){ %>
	  	<option value="<%=loja.getId()%>"><%=loja.getNome() %></option>
		<%} %>
	  </select>
	</div>		
	
	<button type="submit" class="btn btn-default">Submit</button>
	
</form>

<jsp:include page="../compartilhado/footer.jsp"></jsp:include>